Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: allow subTypes.name to be a number in DiscriminatorDescriptor #1683

Merged
merged 1 commit into from
May 4, 2024

Conversation

nesro
Copy link
Contributor

@nesro nesro commented Feb 14, 2024

Description

Fixes #737 as it is a small fix, but very useful and needed.
It allows subTypes.name to be a number as well - useful when discriminating with a version property for example.

Checklist

  • [ x] the pull request title describes what this PR does (not a vague title like Update index.md)
  • [ x] the pull request targets the default branch of the repository (develop)
  • [ x] the code follows the established code style of the repository
    • npm run prettier:check passes
    • npm run lint:check passes
  • tests are added for the changes I made (if any source code was modified)
  • documentation added or updated
  • I have run the project locally and verified that there are no errors

I did not edit the documentation as it doesn't mention the string type so it being a number is fine.

Fixes

fixes #737

@NoNameProvided NoNameProvided changed the title fix: Allow subTypes.name to be a number fix: allow subTypes.name to be a number in DiscriminatorDescriptor May 4, 2024
@NoNameProvided NoNameProvided changed the title fix: allow subTypes.name to be a number in DiscriminatorDescriptor fix: allow subTypes.name to be a number in DiscriminatorDescriptor May 4, 2024
@NoNameProvided NoNameProvided merged commit c7c4477 into typestack:develop May 4, 2024
5 of 6 checks passed
Copy link

github-actions bot commented Jun 4, 2024

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

feat: allow subTypes.name to be a number in DiscriminatorDescriptor
2 participants